const columns=[
    {
        label: "ID",
        field: "id",
        type: "text",
        width: '300px',
        setting: {
            // 前缀
            prefix: '前缀',
            // 后缀
            suffix: '后缀',
        },
    },
    {
        label: "主图2",
        field: "img2",
        type: "img",
        width: '300px',
        setting: {
            type: 'id',
            width: '100px',
            height: '100px'
        },
        // 是否可编辑
        isEdit: true
    },
    {
        label: "价格",
        field: "price",
        type: "number",
        width: '300px',
        setting: {
            // 前缀
            prefix: '￥',
            // 算式
            formula: '*100',
        },
        // 是否可编辑
        isEdit: true
    },
    {
        label: "时间",
        field: "date",
        type: "button",
        width: '300px',
        buttonSetting: {
            type: 'button',
            clickEmit: 'clickCode'
        }
    },
    {
        label: "主图",
        field: "img",
        type: "img",
        width: '300px',
        setting: {
            type: 'url',
            width: '100px',
            height: '100px'
        },
        // 是否可编辑
        isEdit: true
    },

]

export default columns